package com.iyoyi.ctencent;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.tencent.mm.compatible.h.CompatHB;
import com.tencent.mm.sdk.platformtools.ToolsAj;
import com.tencent.mm.ui.MMFragmentActivity;
import com.tencent.mm.ui.base.AnnotationA;

@AnnotationA(2)
public class MainActivity extends MMFragmentActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        CompatHB.cA(true);
        ToolsAj.setContext(this);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        MMFragmentActivity.a.eBj();
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        initActivityCloseAnimation();
    }

    public void startChild(View v) {
        startActivity(new Intent(this, ChildActivity.class));
    }
}
